﻿@model HRWEB.Models.EmployeeModel
@using HRWEB.HtmlHelpers
@if (false)
    {
        <script src="../../Scripts/jquery-1.8.1-vsdoc.js" type="text/javascript"></script>
    }
<script type="text/javascript">
    $(document).ready(function () { $("#Upload").fileupload({ dataType: 'jason' }); });
    $(document).ready(function () {
        $("#Upload").bind('fileuploaddone',
    function (e, data) {
        $("#Photo").attr("src", "Home/GetPhoto?fword=" + Math.random());
    })
    });
    $(document).ready(function () { $("#accordion").accordion({ autoHeight: false, navigation: true }); });
</script>
<div id="accordion" align="center">

<h3><a href="#basicInfo">基本信息（需要填写）<font color="red">注意：下方还有需要填写确认的内容</font></a></h3>
<div>
@Html.ValidationSummary()
<h2><label id="mess"></label>@TempData["Message"]</h2>
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    
    @Html.HiddenFor(x => x.PublicKey)    
    <table>
        <tr>
            <td rowspan="8">
                <img id="Photo" width="200" height="268" src="@Url.Action("GetPhoto", "Home")" alt=""/>
            </td>
            <td>
                姓名
            </td>
            <td>@Model.Employee.FName
            </td>
            <td>
                性别
            </td>
            <td>@Html.FormatTDict(Model.Employee.TDictGender)
            </td>
        </tr>
        <tr>
            <td>
                出生日期
            </td>
            <td>@Model.Birthday
            </td>
            <td>
                年龄
            </td>
            <td>@Model.Age
            </td>
        </tr>
        <tr>
            <td>
                籍贯
            </td>
            <td>@Html.TextBoxFor(x => x.Employee.FBornCity, new { style = "width:120px" })
            </td>
            <td>
                民族
            </td>
            <td>@Model.Nation
            </td>
        </tr>
        <tr>
            <td>
                政治面貌
            </td>
            <td>@Model.Party
            </td>
            <td>
                入党时间
            </td>
            <td>@Model.JoinPartyDate
            </td>
           
        </tr>
         <tr>
            <td>编制</td><td>@Model.BelongOrgan</td><td>身份证号</td><td>@Model.Employee.FCardID</td></tr>
            <tr><td>参加工作时间</td><td>@Html.FormatDateShort(Model.Employee.FFirstWorkDate)</td><td>&nbsp;</td><td>&nbsp;</td></tr>
            <tr><td>进本单位时间</td><td>@Html.FormatDateShort(Model.Employee.FIntoHisDate)</td><td>&nbsp;</td><td>&nbsp;</td></tr>
            <tr><td>婚姻状况</td><td>@Html.DropDownListFor(x => x.Employee.FMarriageCode, Model.MarriageList)</td><td>联系电话</td><td>@Html.TextBoxFor(x => x.Employee.FMobileTel, new { style = "width:120px" })</td></tr>
            <tr><td><font size="2">上传照片(小于5M)</font><input type="file" name="Image" id="Upload" accept="image/jpeg" data-url="@Url.Action("PhotoUpload","Home")" style="width:100px" /></td><td>家庭住址</td><td colspan="3" align="left">@Html.TextBoxFor(x => x.Employee.FAdress, new { style = "width:100%" })</td></tr>
        <tr><td colspan="5" align="center"><input id="submit1" type="submit" value="保存更改" style="width:100%" /></td></tr>
    </table>
}
</div>
<h3><a href="#relation">社会关系及奖惩<font color="red">（请点击展开填写，社会关系为必填项）</font></a></h3>
<div>
@{Html.RenderAction("Index","Relation");}
<br />
@{Html.RenderAction("Index","Reward");}
</div>
<h3><a href="#">详细信息<font color="red">（请点击展开核对）</font></a></h3>
<div>
@{Html.RenderAction("Index", "EduLevel");}
<br />
@{Html.RenderAction("Index", "Degree");}
<br />
@{Html.RenderAction("Index", "WorkStory");}
<br />
@{Html.RenderAction("Index", "Headship");}
<br />
@{Html.RenderAction("Index", "Title");}
<br />
@{Html.RenderAction("Index", "JobLevel");}
</div>
<h3><a href="#"><strong>信息更改及确认</strong><font color="red">（必须提交确认信息）</font></a></h3>
<div>
@{Html.RenderAction("Index", "InfoSummary");}
</div>
</div>
